import request from '@/utils/request'

const api_name = '/eduService/edu-subject'

export default {

  getNestedTreeList() {
    return request({
      url: `${api_name}/tree`,
      method: 'get'
    })
  },
  removeSubject(id){
      return request({
        url: `${api_name}/`+id,
        method: 'delete'
      })
  },

  appendLevel(Subject){
    return request({
      url: `${api_name}/addCategory`,
      method: 'post',
      data:Subject
    })
}
}